<template>
  <el-card class="box-card">
    <div class="cardTop">
      <div class="left">
        <el-icon><Search /></el-icon><span>筛选搜索</span>
      </div>
      <div>
        <el-button>重置</el-button>
        <el-button type="primary">查询搜索</el-button>
      </div>
    </div>
    <div class="boxList">
      <el-form-item :label="labelName">
        <el-input
          :placeholder="placeholderName"
          style="width: 190px"
          type="text"
      /></el-form-item>
      <slot name="inputBox"></slot>
    </div>
  </el-card>
</template>

<script lang="ts" setup>
import { reactive, toRefs, ref } from "vue";
import { Search } from "@element-plus/icons-vue";
withDefaults(
  defineProps<{
    labelName?: string;
    placeholderName?: string;
  }>(),
  { labelName: "输入左上角标题", placeholderName: "输入输入框提示" }
);
</script>
<style lang="less" scoped>
.box-card {
  margin: 30px 20px;
  .cardTop {
    .left {
      vertical-align: bottom;
      span {
        margin-left: 10px;
      }
    }

    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .boxList {
    margin-top: 20px;
    display: flex;
    flex-warp: warp;
    justify-content: space-between;
  }
}
</style>
